<template>
  <div class="activity">
    <van-card
    v-for="item in dataList"
      :price="item.salary"
      :desc="item.positionName"
      :title="item.companyName"
      :thumb="`http://www.xuhongchao.com:3000/uploads/${item.companyLogo}`"
    />
  </div>
</template>

<script>
import Vue from "vue";
import { Card } from "vant";
import axios from 'axios'
Vue.use(Card);
export default {
  name: "",
  data() {
    return {
        dataList:[]
    };
  },
  components: {},
  created() {},
  async mounted() {

      let list= await axios.get('http://www.xuhongchao.com:3000/api/positions/publicdata')
      this.dataList=list.data
      console.log(this.dataList);
  },
  methods: {},
};
</script>
<style lang='stylus' scoped></style>
